package com.promise.jokerdream.config.task

import kotlinx.serialization.Serializable

/**
 * 任务配置
 */
@Serializable
data class TaskConfig(
    val id: String,
    val taskName: String,
    val executionCount: Int,
    val taskLink: String,
    val enabled: Boolean = true
)

/**
 * 任务组配置
 */
@Serializable
data class TaskGroupConfig(
    val id: Long = 0, // 自增ID，与数据库 groupId 对应
    val groupName: String,
    val taskList: List<TaskConfig> = emptyList()
)
